<?php
class EventManager_Form_Event_Base extends SF_Form_Abstract{
	public function init(){

		$this->addElementPrefixPath(
			'EventManager_Validate',
		APPLICATION_PATH . '/modules/eventManager/models/validate',
			'validate'
			);
		
			
		$this->addPrefixPath(
			'EventManager_Form_Element',
			APPLICATION_PATH.'/modules/eventManager/forms/element',
			'element'
		);
		//Naam	
		$this->addElement('text','evt_name', array(
		'filters'	=> array('StringTrim'),
		'valdators'	=> array(
			'Alpha',
		array('StringLength',true,array(3,128))
		),
		'required'	=>	true,
		'label'		=> 'Evenementnaam',
		));
		//Omschrijving
		$this->addElement('text','evt_description', array(
		'filters'	=> array('StringTrim'),
		'valdators'	=> array(
			'Alpha',
		array('StringLength',true,array(3,128))
		),
		'required'	=>	true,
		'label'		=> 'Omschrijving van het evenment',
		));
		//startdatum
		$this->addElement('date','evt_startdate', array(
		'filters'	=> array('StringTrim', 'StringToLower'),
		'validators'	=> array(
		array('StringLength',true,array(3,128)),
		),
		'required'	=>	true,
		'label'		=> 'startdatum',
		));
		//einddatum
		$this->addElement('date','evt_enddate', array(
		'filters'	=> array(),
		'validators'	=> array(
		array(),
		),
		'required'	=>	true,
		'label'		=> 'einddatum',
		));

		//aantal personen
		$this->addElement('text','evt_amtpersons', array(
		'filters'	=> array('StringTrim', 'StringToLower'),
		'validators'	=> array(
		array('StringLength',true,array(1,128)),
		),
		'required'	=>	true,
		'label'		=> 'aantal hulpverleners',
		));

		$this->addElement('submit','submit', array(
		'required'	=>false,
		'ignore'	=>true,
		'decorators'=> array('ViewHelper',array('HtmlTag',array('tag' => 'dd','id' =>'form-submit')))
		));
		$this->addElement('hidden','evt_id', array(
		'filters'	=>	array('StringTrim'),
		'required'	=>	true
		));
		
	}

}